<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>import Test</title>
<!-- css -->
<link href="../../style/fdui.css" rel="stylesheet" type="text/css" />
<!-- lib -->
<script type="text/javascript" src="../../src/FDLib/FDLib.js"></script>
<script type="text/javascript" src="../../src/JsMap.js"></script>

<script type="text/javascript">
// 导入JS
// 方法1
FDLib.importJS(['FDButton','FDTextBox'],);
// 方法2
//FDLib.setImportOption({appDir:'../../src/'}).importJS(['FDButton','FDTextBox']);


window.onload = function() {
	new FDButton({domId:"b",text:'click',onclick:function(){
		alert('hello')
	}});
	
	new FDTextBox({domId:'t'});
}
</script>
</head>
<body>

<div>
	<div id="b"></div>
	<div id="t"></div>
</div>

</body>
</html>